package demo3;

public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        Mouse mouse = new Mouse();
        KeyBoard keyBoard = new KeyBoard();
        computer.openComputer();
        computer.usbDevice(mouse);
        computer.usbDevice(keyBoard);
        mouse.closeDevice();
        keyBoard.closeDevice();
        computer.closeComputer();
    }
}
